.chatContainer {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.messagesContainer {
  flex: 1;
  padding: 16px 24px;
  overflow-y: auto;
  background-color: white;
}

.message {
  display: flex;
  margin-bottom: 16px;
  
  &.user {
    justify-content: flex-end;
    
    .messageBubble {
      background-color: #d4ddff;
      color: #262626;
      margin-left: 8px;
      border-radius: 12px 0 12px 12px;
      padding: 12px 16px;
    }
  }
  
  &.assistant {
    justify-content: flex-start;
    
    .messageBubble {
      background-color: transparent;
      color: #262626;
      margin-left: 8px;
      padding: 0;
      border-radius: 0;
    }
  }
}

.avatar {
  flex-shrink: 0;
  margin-right: 6px;
  
  &.userAvatar {
    margin-left: 8px;
    margin-right: 0;
  }
}

.messageBubble {
  max-width: 70%;
  word-wrap: break-word;
  
  .assistantName {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #666;
  }
  
  .messageContent {
    font-size: 14px;
    line-height: 1.4;
    
    .voiceMessage {
      display: flex;
      align-items: center;
      gap: 8px;
      
      .voiceDuration {
        font-size: 14px;
        color: #262626;
        font-weight: 500;
      }
      
      .playButton {
        font-size: 16px;
        color: #262626;
        padding: 0;
        height: auto;
        
        &:hover {
          color: #40a9ff;
        }
      }
    }
    
    .messageTime {
      font-size: 12px;
      color: #999;
      margin-top: 4px;
      text-align: right;
      display: none;
    }
  }
}

.inputContainer {
  padding: 16px 24px;
  background-color: white;
  
  .messageInput {
    margin-bottom: 8px;
    font-size: 14px;
    background-color: #f2f2f2;
    border-radius: 0;
    height: 120px;
    resize: none;
  }
  
  .inputActions {
    display: flex;
    justify-content: flex-start;
    
    .voiceButton {
      font-size: 14px;
      color: #2163a5;
      padding: 0;
      text-decoration: underline;
      
      &:hover {
        color: #2163a5;
        text-decoration: underline;
      }
    }
  }
}

// Ant Design 组件样式覆盖
:global(.ant-input) {
  font-size: 14px;
}

:global(.ant-avatar) {
  width: 32px;
  height: 32px;
}

// 预发送界面样式
.pendingActions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  
  .recordingPreview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background-color: #d4ddff;
    border-radius: 8px;
    
    .recordingDuration {
      font-size: 14px;
      color: #262626;
      font-weight: 500;
    }
    
    .recordingIcon {
      font-size: 16px;
      color: #262626;
    }
  }
  
  .actionButtons {
    display: flex;
    gap: 12px;
    
    .sendButton {
      flex: 0.7;
    }
    
    .cancelButton {
      flex: 0.3;
      background-color: #e2e2e2 !important;
      border-color: #e2e2e2 !important;
      color: #000 !important;
      
      &:hover {
        background-color: #d4d4d4 !important;
        border-color: #d4d4d4 !important;
        color: #000 !important;
      }
    }
  }
}
